<?php
/**
 * Configure file
 *
 * @sinc 10:41 2011/07/15
 * @desc client configure
 */

defined('SYNC_CLIENT_ROOT') || die('Access denied !');


return array(

    /**
     * @var version
     *
     * @desc default version
     */
    'version' => '0.7a',

    /**
     * @var email
     *
     * @desc dianboom email
     */
    'email' => 'vendor10001@dianboom.com',

    /**
     * @var token
     *
     * @desc sync token
     */
    'token' => '0zjkj_923^&*3svcjjdf/.asdf',

    /**
     * @var db
     *
     * @desc database configure
     */
    'db' => array(
        'db_type'				=> 'mysql',
        'db_host'				=> '127.0.0.1',
        'db_name'				=> 'ecshop_0708',
        'db_prefix' 			=> 'ecs_',
        'db_username'			=> 'root',
        'db_password'			=> '********',
        'db_pconnect'			=> '0',
        'db_charset'			=> 'utf8',
    ),

    /**
     * @var system
     *
     * @desc the site system
     */
    'system' => 'ecshop_2.7.2',

    /**
     * @var methodFieldMapping
     *
     * @desc field mapping, it will include the mapping file of system before in INCLUDE_ROOT/field_mappings 
     * path
     */
    'methodFieldMapping' => '',

    /**
     * @var limit
     *
     * @desc the record offset
     */
    'limit' => 50,

    /**
     * @var charset
     *
     * @desc page charset
     */
    'charset' => 'utf-8',

    /**
     * @var outputType
     *
     * @desc output string type
     */
    'outputType' => 'application/json',

    /**
     * @var ordersDataFormat
     *
     * @desc receive data format from dianboom, json or xml
     */
    'ordersDataFormat' => 'json',

    /**
     * @var ordersPath
     *
     * @desc orders data save path rule
     */
    'ordersPathRule' => 'data/orders/%s.txt',

    /**
     * @var language
     *
     * @desc default language
     */
    'language' => 'en-us',

	/**
     * @var methods
     *
     * @desc allowed methods
     */
    'methods' => array(
        'getCategories',
        'getParentCategories',
        'getBrandList',
        'get_categories_by_id',
        'get_child_list',
		//'get_category_by_id',
        'getProductByCategory',
        'getProductGalleris',
        'statistics',
		'getProductAttrs',
		'receiveOrders'
    ),

    /**
     * @var domainMapping
     *
     * @desc gallery domain mapping
     */
    'pathMapping' => array(
        1 => 'http://YOUR-WEB-SITE-URL/', //必须以'/'斜杠结尾
        2 => ''
    )
);
?>